<?php
require_once '../sub/init.php';
header("Cache-control: private");
require_once 'chkUadm.php';
if(!in_array('hi_set',$QXARR))exit(noauth());
require_once ZEAI.'cache/config_sms.php';?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="<?php echo HOST;?>/res/www_zeai_cn.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<link href="css/main.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css">
<style>::-webkit-input-placeholder{color:#bbb;font-size:14px}</style>
</head>
<body class="body">
<form id="W_W_W_Z_E__A_I__C_N__FORM">
<table class="table size2 W90_" style="margin:20px 0 0 20px">
	<tr><td height="50" colspan="2" align="center" class="line150 S18"><b>打招呼设置</b><div class="tips S12 C999">需要在【系统配置】【模块导航】里开启打招呼功能方能生效，参见：顶部【设置】->左侧【模块导航】</div></td></tr> 
	<tr>
		<td class="tdL">发送类型</td>
		<td class="tdR">
        <input type="radio" name="hi_kind" id="hi_kind1" class="radioskin" value="1"<?php echo ($_SMS['hi_kind'] == 1)?' checked':'';?>><label for="hi_kind1" class="radioskin-label"><i class="i1"></i><b class="W100">隐式全自动</b></label>
        <input type="radio" name="hi_kind" id="hi_kind2" class="radioskin" value="2"<?php echo ($_SMS['hi_kind'] == 2)?' checked':'';?>><label for="hi_kind2" class="radioskin-label"><i class="i1"></i><b class="W100">用户自己选择</b></label>
		<div class="tips2">选择【全自动】系统将自动编辑一份随机个人资料发送给对方；如：^_^认识一下吧，我生于1992年，属鼠，工资5~8千，个头173厘米，本科学历，我觉得我们挺合适的，请给我回信吧。<br>选择【用户自己选择】系统将自动弹出选择界面，选择下方编辑好的一条短语进行发送</div></td>
	</tr>     
	<tr>
		<td class="tdL">短语内容列表</td>
		<td class="tdR"><textarea name="hi_textlist" style="padding:10px" cols="30" rows="20" class="W100_ S14" id="hi_textlist" placeholder="请输入简短内容，一行一条，不能有空行，为了性能，请控制在20行以内"><?php echo str_replace("<br>","\r",dataIO($_SMS['hi_textlist'],'out'));?></textarea><span class="tips2">简短内容，<b>一行一条</b>，不能有空行，为了性能，请控制在20行以内</span></td>
	</tr> 
	<tr>    
		<td colspan="2" align="center">
		<input name="submitok" type="hidden" value="hi_set">
		<input name="uu" type="hidden" value="<?php echo $session_uid;?>">
		<input name="pp" type="hidden" value="<?php echo $session_pwd;?>">
		<button type="button" id="save" class="btn size3">确认并保存</button>
		<script>
			save.onclick = function(){
				zeai.msg('正在更新中',{time:30});
				zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,form:W_W_W_Z_E__A_I__C_N__FORM},function(e){var rs=zeai.jsoneval(e);
					zeai.msg(0);zeai.msg(rs.msg);
					if (rs.flag == 1){setTimeout(function(){location.reload(true);},1000);}
				});
			}
		</script>
		</td>
	</tr>
</table>
</form>
<br><br><br>
<?php require_once 'bottomadm.php';?>